// 用于主页面通用内容
import Main from '@/views/main.vue';
// 用于二级页面的内容
import SubMain from '@/views/sub-main.vue';

export default {
	path: '/shop',
	name: 'shop',
	redirect: '/shop/shop/style',
	meta: {
		title: '店铺',
		icon: 'ios-construct'
	},
    component: Main,
    children: [
    	{
			path: 'shop',
			name: 'shop_shop',
			component: SubMain,
			children: [
				{
	        		path: 'style',
		        	name: 'shop_shop_style',
		        	meta: {
		        		title: '店铺风格'
		        	},
		        	component: resolve => {
			        	require(['@/views/shop/shop/style/index.vue'], resolve)
			        }
	        	},
	        	{
	        		path: 'fitment',
		        	name: 'shop_shop_fitment',
		        	meta: {
		        		title: '首页装修'
		        	},
		        	component: resolve => {
			        	require(['@/views/shop/shop/fitment/index.vue'], resolve)
			        }
	        	},
	        	{
	        		path: 'navigation',
		        	name: 'shop_shop_navigation',
		        	meta: {
		        		title: '店铺导航',
		        		disabled: true
		        	},
		        	component: resolve => {
			        	require(['@/views/shop/shop/navigation/index.vue'], resolve)
			        }
	        	},
	        	{
	        		path: 'headnav',
		        	name: 'shop_shop_headnav',
		        	meta: {
		        		title: '头部导航',
		        		disabled: true
		        	},
		        	component: resolve => {
			        	require(['@/views/shop/shop/head-nav/index.vue'], resolve)
			        }
	        	},
	        	{
	        		path: 'classify',
		        	name: 'shop_shop_classify',
		        	meta: {
		        		title: '分类模板',
		        		disabled: true
		        	},
		        	component: resolve => {
			        	require(['@/views/shop/shop/classify/index.vue'], resolve)
			        }
	        	},
	        	{
	        		path: 'ucenter',
		        	name: 'shop_shop_ucenter',
		        	meta: {
		        		title: '用户中心',
		        		disabled: true
		        	},
		        	component: resolve => {
			        	require(['@/views/shop/shop/ucenter/index.vue'], resolve)
			        }
	        	},
	        	{
	        		path: 'pages',
		        	name: 'shop_shop_pages',
		        	meta: {
		        		title: '专题页面'
		        	},
		        	component: resolve => {
			        	require(['@/views/shop/shop/pages/index.vue'], resolve)
			        }
	        	}
			]
		},
		{
			path: 'small-program',
			name: 'shop_smallProgram',
			meta: {
				title: '小程序'
			},
			component: SubMain,
			children: [
				{
	        		path: 'wechat',
		        	name: 'shop_small-program_wechat',
		        	meta: {
		        		title: '微信小程序',
		        		disabled: true
		        	},
		        	component: resolve => {
			        	require(['@/views/shop/small-program/wechat/index.vue'], resolve)
			        }
	        	},
	        	{
	        		path: 'alipay',
		        	name: 'shop_small-program_alipay',
		        	meta: {
		        		title: '支付宝小程序',
		        		disabled: true
		        	},
		        	component: resolve => {
			        	require(['@/views/shop/small-program/alipay/index.vue'], resolve)
			        }
	        	},
	        	{
	        		path: 'baidu',
		        	name: 'shop_small-program_baidu',
		        	meta: {
		        		title: '百度小程序',
		        		disabled: true
		        	},
		        	component: resolve => {
			        	require(['@/views/shop/small-program/baidu/index.vue'], resolve)
			        }
	        	},
	        	{
	        		path: 'toutiao',
		        	name: 'shop_small-program_toutiao',
		        	meta: {
		        		title: '头条小程序',
		        		disabled: true
		        	},
		        	component: resolve => {
			        	require(['@/views/shop/small-program/toutiao/index.vue'], resolve)
			        }
	        	},
	        	{
	        		path: 'tencent',
		        	name: 'shop_small-program_tencent',
		        	meta: {
		        		title: 'QQ小程序',
		        		disabled: true
		        	},
		        	component: resolve => {
			        	require(['@/views/shop/small-program/tencent/index.vue'], resolve)
			        }
	        	}
			]
		}
    ]
}